//
//  DataBaseSingleton.h
//  豆瓣
//
//  Created by dllo on 15/12/15.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Movie.h"
#import "ActivityList.h"

@interface DataBaseSingleton : NSObject

+ (instancetype)shareDataBase;

// 打开数据库
- (void)openDB;

// 创建mycollection表
- (void)createTable;

// 插入到mycollection表中
- (void)insertMovieIntoTable:(Movie *)movie;

// 查找所有的movie;
- (NSMutableArray *)selectMovie;

- (void)deleteTable:(NSString *)name;

// 创建活动数据库表
- (void)createActivityTable;

// 插入一个活动收藏
- (void)insertActivityIntoTable:(ActivityList *)activity;

- (NSMutableArray *)selectActivity;

// 删除我的活动收藏中的数据
- (void)deleteActivityTable:(NSString *)title;

// 创建活动数据库表
- (void)createActivityDetailTable;

// 插入一个活动数据
- (void)insertActivityDetailIntoTable:(ActivityList *)activity;

- (NSMutableArray *)selectActivityDetail;

// 删除真个表
- (void)dropActivityDetailTable;


@end
